package com.ruiyian.project.equipment.service.impl;

import com.ruiyian.project.equipment.domain.EquipmentProperty;
import com.ruiyian.project.equipment.domain.EquipmentType;
import com.ruiyian.project.equipment.mapper.EquipmentPropertyMapper;
import com.ruiyian.project.equipment.mapper.EquipmentTypeMapper;
import com.ruiyian.project.equipment.service.EquipmentPropertyService;
import com.ruiyian.project.equipment.service.EquipmentTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author chong
 * @email 673426164@qq.com
 * @create 2021/1/25
 * Desc: 设备属性实现
 */
@Service
public class EquipmentPropertyServiceImpl implements EquipmentPropertyService {
    @Autowired
    private EquipmentPropertyMapper equipmentPropertyMapper;
    /**
     * 查询列表
     * @param equipmentProperty
     * @return
     */
    @Override
    public List<EquipmentProperty> selectList(EquipmentProperty equipmentProperty) {
        return equipmentPropertyMapper.selectList(equipmentProperty);
    }

    /**
     * 根据id获取对象
     * @param id
     * @return
     */
    @Override
    public EquipmentProperty findOne(Long id) {
        return equipmentPropertyMapper.findOne(id);
    }

    /**
     * 删除
     * @param id
     */
    @Override
    public void delete(Long id) {
        equipmentPropertyMapper.delete(id);
    }

    /**
     * 编辑
     * @param equipmentProperty
     */
    @Override
    public void edit(EquipmentProperty equipmentProperty) {
        equipmentPropertyMapper.edit(equipmentProperty);
    }

    /**
     * 保存
     * @param equipmentProperty
     */
    @Override
    public void save(EquipmentProperty equipmentProperty) {
        equipmentPropertyMapper.save(equipmentProperty);
    }
}
